//
//  CollectionViewCell.swift
//  YueJian
//
//  Created by mac on 2017/10/25.
//  Copyright © 2017年 MapleStory. All rights reserved.
//

import UIKit

class CollectionViewCell: UICollectionViewCell {
    
    var dic: [String:AnyObject]? {
        didSet{
//            title.text = dic?["introduction"] as? String
            title.text = dic?["club_name"] as? String 
            name.text = dic?["notice"] as? String
            let str = dic?["thumb0"] as? String ?? ""
            let imageStr = "http://172.24.10.175/workout/Uploads/"+str
            let images = try! UIImage(data: Data(contentsOf: URL(string: imageStr)!))
            image.image = images
        }
    }

    @IBOutlet weak var title: UILabel!
    @IBOutlet weak var image: UIImageView!
    @IBOutlet weak var name: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        
    }

}
